<div class="layui-form-item">
<label class="layui-form-label">上传张图片</label>
<div class="layui-upload">
    <button type="button" class="layui-btn layui-btn-normal" id="testList">选择多文件</button>
    <button type="button" class="layui-btn" id="testListAction">开始上传</button>
    <div class="layui-upload-list">
        <table class="layui-table">
            <thead>
            <tr><th>文件名</th>
                <th>大小</th>
                <th>状态</th>
                <th>操作</th>
            </tr></thead>
            <tbody id="demoList">
            {if isset($info['images'])  || !empty($info['images'])}
            {foreach :json_decode($info['images'],true) as $k=>$v}
            <tr><th><img src="{$v}" alt=""></th>
                <th class="size"><input type="hidden" name="images['{$k}']" value="{$v}"></th>
                <th style="color: green">已上传</th>
                <th><button class="layui-btn layui-btn-mini layui-btn-danger demo-delete">删除</button></th>
            </tr>
            {/foreach}
            {/if}
            </tbody>
            
            </tbody>
        </table>
    </div>
</div>
</div>
<script src="/static/common/js/jquery.min.js"></script>
<script>
    $(function () {
        $('.demo-delete').on('click',function () {
            $(this).parent().parent().remove();
        })
    })
</script>
